package com;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @date 2023/3/10
 */
@Configuration
public class WebSocketServiceConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
    //    @Autowired
//    public void chatService(ChatService chatService, LinkService linkService){
//        WebSocket.chatService=chatService;
//        WebSocket.linkService=linkService;
//    }
}
